{assign var="path" value=$smarty.template|regex_replace:"#index\.tpl$#":""}
{include file=$path|string_format:"%sheader.tpl"}
{include file=$path|string_format:"%smenu.tpl"}
{include file=$path|string_format:"%sfooter.tpl"}